
# How to install Linux Libre kernel on Debian

Linux Libre is the linux kernel that was stripped of any binary, closed source parts.

Run `dpkg --print-architecture`. It should return one of these below:

```
amd64
arm64
armhf
i386
or1k
powerpc
ppc64
ppc64el
riscv64
```

Only if you see i386, check the source page (below) and continue there.

`
sudo nano /etc/apt/sources.list.d/linux-libre.list
`

```
deb mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt freesh main
```

Run command below to enable ftp support in APT if any mirror needs it:


```
sudo apt-config -o Dir::Bin::Methods::ftp=ftp shell
```

```
wget -O - https://jxself.org/gpg.asc | sudo apt-key add -
```

`apt-key finger` should show the fingerprint below:

```
F611 A908 FFA1 65C6 9958 4ED4 9D0D B31B 545A 3198
```

```
sudo apt update
# for non-lts and latest version:
sudo apt install linux-libre
# for lts (long term supported) version:
sudo apt install linux-libre-lts
```

If you use libreboot BIOS on your machine,

```
cd /boot/grub
sudo ln -s grub.cfg libreboot_grub.cfg
```

Source: [https://jxself.org/linux-libre/](https://jxself.org/linux-libre/)
